<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./tab.css">
</head>

<body>
  <div id="tab">
    <ul id="nav">
      <li>科技</li>
      <li>新闻</li>
      <li>汽车</li>
    </ul>
    <div id="content">
      <div>科技内容</div>
      <div>新闻内容</div>
      <div>汽车内容</div>
    </div>
  </div>
  <script src="./tab.js"></script>
  <script>
    var mytab = new Tab("#tab")
  </script>
</body>

</html>